package com.shop.record.dao;

import com.shop.record.pojo.RecordInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @PackgeName: com.shop.record.dao
 * @ClassName: t_storage_recordMapper
 * @Author: 比巴卜
 * Date: 2021/7/23 9:22
 * project name: shop
 * @Version: 1.8
 * @Description:
 */
@Repository
public interface RecordMapper {
    /**
     * 分页模糊查询
     *
     * @return
     */
    List<RecordInfo> Page(Map<String, Object> map);

    /**
     * 添加信息
     *
     * @param record
     * @return
     */
    int Insert(RecordInfo record);

    /**
     * 修改信息
     *
     * @param record
     * @return
     */
    int Update(RecordInfo record);

    /**
     * 删除信息
     *
     * @param id
     * @return
     */
    int Delete(@Param("id") Integer id);
}
